<template>
    <view style="height:40px;background-color: #fff;">
        <van-row style="height: 40px;align-items: center;padding: 0 10px;">
            <van-col span="12" style="display: flex;">
                <van-image height="40" fit="heightFix" :src="imgLogin" alt="" />
                <!-- <button @click="onGetToken">获取token</button> -->
            </van-col>
            <!-- <van-col span="6">
                <van-image height="28" :src="imgLoginText" fit="heightFix" alt="" srcset="" />
            </van-col> -->
            <van-col span="12" style="display: flex;align-items: center;justify-content: flex-end;">
                <van-image height="24"  :src="KingFlg?King:KingOn" fit="heightFix" alt="" srcset="" @click="onTagKing" />
                <p style="margin-left: 2px;"></p>
            </van-col>
        </van-row>

    </view>

</template>

<script lang="ts" setup name="top">
import { onMounted,ref } from "vue";
// import imgLoginText from "@/assets/png/@1x.png"
import imgLogin from "@/assets/png/WechatIMG119.jpg"
import King from "@/assets/png/noticeOff.svg"
import KingOn from "@/assets/png/noticeOn.svg"
// import { onGetToken } from "../hooks"
const KingFlg = ref(false);
const onTagKing = ( )=>{
    KingFlg.value = !KingFlg.value
}
onMounted(() => {
});

</script>